package com.wedo.mall.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lxy on 2017/6/19.
 */

public class Banner implements Parcelable {
    public String img;
    public String txt;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.img);
        dest.writeString(this.txt);
    }

    public Banner() {
    }

    protected Banner(Parcel in) {
        this.img = in.readString();
        this.txt = in.readString();
    }

    public static final Parcelable.Creator<Banner> CREATOR = new Parcelable.Creator<Banner>() {
        @Override
        public Banner createFromParcel(Parcel source) {
            return new Banner(source);
        }

        @Override
        public Banner[] newArray(int size) {
            return new Banner[size];
        }
    };
}
